package com.woniuxy.yygh.user.client;

import com.woniuxy.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: interface
 * <P> TODO: 远程调用user里面的patient 病人信息
 * <P> Date: 2022/3/2:11:07
 * <P> Description:
 */
@FeignClient("service-user")
@Repository
public interface PatientFeignClient {

    /**
     * TODO:根据就诊人的id获取就诊人的信息
     **/
    @GetMapping("/api/user/patient/inner/get/{id}")
    public Patient getPatientOrder(@PathVariable("id") Long id);
}
